﻿namespace WMS6.Web.Inventory
{
    using System;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;
    using WMS6.Web;

    public class ReplenishementExeQuery : BasePage
    {
        protected Button btnSearch;
        protected DropDownList ddlFromLoc;
        protected DropDownList ddlLot;
        protected DropDownList ddlOwnerID;
        protected DropDownList ddlSkuID;
        protected DropDownList ddlToLoc;
        protected DropDownList ddlZoneID;
        protected HtmlForm F5250;
        protected HtmlInputHidden hdnActionID;
        protected Label lblFromLoc;
        protected Label lblLot;
        protected Label lblOwnerID;
        protected Label lblReceiptQuery;
        protected Label lblSkuID;
        protected Label lblToLoc;
        protected Label lblZoneID;
        protected HtmlLink mycss;
        protected TextBox txtFromLoc;
        protected TextBox txtLot;
        protected TextBox txtOwnerID;
        protected TextBox txtSkuID;
        protected TextBox txtToLoc;
        protected TextBox txtZoneID;

        protected void btnSearch_Click(object sender, EventArgs e)
        {
            base.Server.Transfer("ReplenishementExeList.aspx", false);
        }

        private void InitDropDownLists()
        {
            base.InitQueryDDL(this.ddlFromLoc, 0);
            base.InitQueryDDL(this.ddlLot, 0);
            base.InitQueryDDL(this.ddlOwnerID, 0);
            base.InitQueryDDL(this.ddlSkuID, 0);
            base.InitQueryDDL(this.ddlToLoc, 0);
            base.InitQueryDDL(this.ddlZoneID, 0);
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!base.IsPostBack)
            {
                base.InitPage(this.Page);
                this.InitDropDownLists();
            }
        }
    }
}

